<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>添加其他合作成果信息</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <!--link导入外部的css，js样式，如果导入的资源和本页面在同一个文件夹下，直接文件名即可-->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/bootstrap/dist/css/bootstrap.min.css}">
    <!-- jQuery 3 -->
    <script th:src="@{/asserts/bower_components/jquery/dist/jquery.min.js}"></script>
    <!-- Bootstrap 3.3.7 -->
    <script th:src="@{/asserts/bower_components/bootstrap/dist/js/bootstrap.min.js}"></script>
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/font-awesome/css/font-awesome.min.css}">
    <!-- Ionicons -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/Ionicons/css/ionicons.min.css}">
    <!-- DataTables -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/asserts/dist/css/AdminLTE.min.css}">

    <!--MyScript-->
    <script th:src="@{/asserts/Apolar_sh/lib/layer/2.4/layer.js}"></script>
    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">

</head>
<body>

<div class="wrapper">
    <!-- Content Wrapper. Contains page content -->
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h4>
            <i class="fa fa-edit"></i> 添加其他合作成果信息
        </h4>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box" style="width: 70%;margin: 0 auto;">
                    <div class="box-body">
                        <form th:action="@{/cr/saveOther(coId=${coId},coName=${coName},currentPage=${currentPage},pageSize=${pageSize},pageNow=${pageNow})}"
                              class="form-horizontal" method="post">
                            <h4 style="text-align: center;font-weight: bold">添加其他成果信息</h4>
                            <br>
                            <div class="form-group">
                                <label class="col-sm-4 control-label"><span
                                        style="color: red;">*</span> 成果主题：</label>
                                <div class="col-sm-5">
                                    <input id="crType" type="text" class="form-control" autocomplete="off"
                                           name="crType" value="其他" readonly></div>
                            </div>
                            <div class="form-group" id="otherRemark">
                                <label class="col-sm-4 control-label"><span
                                        style="color: red;">*</span> 其他说明：</label>
                                <div class="col-sm-5">
                                    <textarea id="crRemark" class="form-control" rows="3" cols="60" name="crRemark"
                                              placeholder="请输入其他说明"></textarea>
                                </div>
                            </div>
                            <br>
                            <div class="form-group">
                                <div style="text-align: center;">
                                    <a class="btn btn-danger"
                                       th:href="@{/cr/findOther(coId=${coId},coName=${coName},currentPage=${currentPage},pageSize=${pageSize},pageNow=${pageNow})}">
                                        <i class="fa fa-backward"></i>&nbsp;返&nbsp;回
                                    </a>&nbsp;
                                    <button type="reset" class="btn btn-info" id="resetBtn"
                                            onclick="layer.msg('重置成功！', {icon: 1, time: 1500});">
                                        <i class="fa fa-repeat"></i>&nbsp;重&nbsp;置
                                    </button>&nbsp;
                                    <button type="submit" class="btn btn-success">
                                        &nbsp;&nbsp;&nbsp;<i class="fa fa-check-square"></i>&nbsp;&nbsp;&nbsp;提&nbsp;&nbsp;&nbsp;交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </button>
                                </div>
                            </div>
                        </form>

                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>
    <!-- /.content -->
</div>

<!-- ./wrapper -->


<!-- DataTables -->
<script th:src="@{/asserts/bower_components/datatables.net/js/jquery.dataTables.min.js}"></script>
<script th:src="@{/asserts/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js}"></script>
<!-- SlimScroll -->
<script th:src="@{/asserts/bower_components/jquery-slimscroll/jquery.slimscroll.min.js}"></script>
<!-- FastClick -->
<script th:src="@{/asserts/bower_components/fastclick/lib/fastclick.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/asserts/dist/js/adminlte.min.js}"></script>
<!-- AdminLTE for demo purposes -->
<script th:src="@{/asserts/dist/js/demo.js}"></script>
<!-- page script -->

<script>

    $("form").submit(
        function () {
            var crRemark = $("#crRemark").val();
            if (crRemark == null || crRemark === "") {
                layer.msg('亲，请填写信息哦!', {
                    icon: 0,
                    time: 1500
                });
                return false;
            }
            return true;
        }
    );
</script>
</body>
</html>